package com.preskool.service.impl;

import com.preskool.mapper.DepartmentsMapper;
import com.preskool.po.Departments;
import com.preskool.service.DepartmentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author kennyzzz
 * @Data 2021/1/11 5:00
 */
@Service
public class DepartmentsServiceImpl implements DepartmentsService {
    @Autowired(required = false)
    private DepartmentsMapper departmentsMapper;
    @Override
    public List<Departments> findAllDept() {
        return departmentsMapper.findAllDept();
    }
}
